package com.ccdt.tv.smartrecommend.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by syt on 2017/3/30.
 *
 * 终端控制信息实体类
 */

public class ControlBean implements Parcelable{

    private String type;
    private String intent;
    private ArrayList<String> filterList = new ArrayList<>();
    private String filterFlag;
    private String msg;
    private String time;

    public ControlBean() {

    }

    protected ControlBean(Parcel in) {
        type = in.readString();
        intent = in.readString();
        filterList = in.createStringArrayList();
        filterFlag = in.readString();
        msg = in.readString();
        time = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(type);
        dest.writeString(intent);
        dest.writeStringList(filterList);
        dest.writeString(filterFlag);
        dest.writeString(msg);
        dest.writeString(time);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ControlBean> CREATOR = new Creator<ControlBean>() {
        @Override
        public ControlBean createFromParcel(Parcel in) {
            return new ControlBean(in);
        }

        @Override
        public ControlBean[] newArray(int size) {
            return new ControlBean[size];
        }
    };

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIntent() {
        return intent;
    }

    public void setIntent(String intent) {
        this.intent = intent;
    }

    public ArrayList<String> getFilterList() {
        return filterList;
    }

    public void setFilterList(ArrayList<String> filterList) {
        this.filterList = filterList;
    }

    public String getFilterFlag() {
        return filterFlag;
    }

    public void setFilterFlag(String filterFlag) {
        this.filterFlag = filterFlag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
